<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>雷达图</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
  <style>
    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }
    #map_container {
      width: 100%;
      height: 100%;
      margin: 0;
    }
  </style>
  <script src="//api.map.baidu.com/api?v=1.0&type=webgl&ak=sClwXDCZC6GLOdLlYevqoiEzfaUFzqP3"></script>
  <script src="https://mapv.baidu.com/gl/examples/static/common.js"></script>
  <script src="https://code.bdstatic.com/npm/mapvgl@1.0.0-beta.141/dist/mapvgl.min.js"></script>
  <script src="https://code.bdstatic.com/npm/mapvgl@1.0.0-beta.141/dist/mapvgl.threelayers.min.js"></script>
</head>
<body>
<div id="map_container"></div>
<script>
  // 6322,2363

  /* global BMapGL */

  /* global mapv */

  /* global mapvgl */

  /* global initMap */

  /* global purpleStyle */

  var map = initMap({
    tilt: 60,
    heading: 0,
    center: [113.542146,34.823709],
    zoom: 16,
    style: purpleStyle
  });

  var view = new mapvgl.View({
    map: map
  });

  var data = [{
    geometry: {
      type: 'Point',
      coordinates: [113.546876,34.821783]
    },
    properties: {
      count: 100
    }
  }];

  var fanLayer = new mapvgl.FanLayer({
    color: '#DC143C',
    data: data,
    size: function (data) {
      return data.properties.count * 10;
    }
  });
  view.addLayer(fanLayer);
</script>
</body>
</html>
